import request from '@/utils/request'

/**
 * 获取用户列表
 */
export function getAuthList (data) {
    return request({
        url: '/MRMS/api/Role/GetRole',
        method: 'post',
        data
    })
}

/**
 * 新增角色权限
 */
export function addRole (data) {
    return request({
        url: '/MRMS/api/Role/AddRole',
        method: 'post',
        data
    })
}

/**
 * 编辑角色权限
 */
export function editRole (data) {
    return request({
        url: '/MRMS/api/Role/EditRole',
        method: 'post',
        data
    })
}

/**
 * 修改启停状态
 */
export function changeState (data) {
    return request({
        url: '/MRMS/Api/Role/EditState',
        method: 'post',
        data
    })
}
